package com.study.dao;

import com.study.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    //增
    int addUser(User user);
    //删
    int removeUser(@Param("userId") Integer id);
    //改
    int updateUser(User user);
    //查
    List<User> queryUsers();
    //根据用户id查询用户
    User queryUserById(@Param("userId") Integer uid);
}
